#!/bin/bash
echo "compile..."
go mod tidy
cd cmd
go build -o haoadm haoadm/haoadm.go
go build -o haobase haobase/haobase.go
go build -o haomatch haomatch/haomatch.go
go build -o haoquote haoquote/haoquote.go
echo "backend compilation success"

echo "starting process"
cd ..
cd example
go build -o example example/example.go
echo "front-web compilation success"